<div class=dashboard-page>
    <div class=container-fluid>
        <div class="row">
            <div class="sidebar" ng-if="!user.sso" style="max-width: 217px;">
                <div class=text-center>
                    <h2 class=brand>保证金
                        <small>管理系统</small>
                    </h2>
                    <img src="bzj/client/image/login/flat-avatar.png" class=user-avatar><br>
                    <span>{{user.agency.name + ' ' + user.name}}</span>&nbsp;&nbsp;
                    <a ui-sref="login" class="btn btn-white btn-outline btn-rounded btn-sm">注销</a>
                </div>
                <ul class="nav nav-sidebar">
                    <li ng-class="{active: state == 'generation_buckle'}" ng-click="state = 'generation_buckle'">
                        <a ui-sref="dashboard.generation_buckle">代扣 <span class=sr-only>(current)</span></a>
                    </li>
                    <li ng-show="user.role == 'accountant'" ng-class="{active: state == 'buckle_sum_details'}" ng-click="state = 'buckle_sum_details'">
                        <a ui-sref="dashboard.buckle_sum_details">代扣汇总清单 </a>
                    </li>
                    <li ng-show="user.role == 'accountant'" ng-class="{active: state == 'buckle_schedule'}" ng-click="state = 'buckle_schedule'">
                        <a ui-sref="dashboard.buckle_schedule">代扣计提表 </a>
                    </li>
                    <li ng-class="{active: state == 'generation_gives'}" ng-click="state = 'generation_gives'">
                        <a ui-sref="dashboard.generation_gives">代付 </a>
                    </li>
                    <li ng-show="user.role == 'accountant'" ng-class="{active: state == 'gives_sum_details'}" ng-click="state = 'gives_sum_details'">
                        <a ui-sref="dashboard.gives_sum_details">代付汇总清单 </a>
                    </li>
                    <li ng-show="user.role == 'accountant'" ng-class="{active: state == 'gives_schedule'}" ng-click="state = 'gives_schedule'">
                        <a ui-sref="dashboard.gives_schedule">代付计提表 </a>
                    </li>
                </ul>
            </div>
            <div class="main" ng-class="{sso:user.sso}" ui-view>

            </div>
        </div>
    </div>
</div>